﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace CSKLiteWindowsPhone.UserContorl
{
    public partial class CircleTile : UserControl
    {
        public string Title { get; set; }
        public string Text { get; set; }
        public Color Color { get; set; }
        public CircleTile()
        {
            InitializeComponent();

            this.Loaded += new RoutedEventHandler(CircleTile_Loaded);
        }

        void CircleTile_Loaded(object sender, RoutedEventArgs e)
        {
            this.txtTitle.Text = this.Title;
            this.txtContent.Text = this.Text;
            this.txtContent.Foreground = new SolidColorBrush(this.Color); 
        }
    }
}
